import random
import string

def creat_mac():
    MAC = '01-AF-3B'
    hex_num = string.hexdigits
    for i in range(3):
        n = random.sample(hex_num, 2)
        sn = '-' + ''.join(n).upper()
        MAC += sn
        return MAC


def main():
    with open('mac.txt', 'w')as file:
        for i in range(100):
            mac = creat_mac()
            print(mac)
            file.write(mac + '\n')


main()
